using Net35.Xrm.Sdk.Metadata;
using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class CreateOneToManyRequest : OrganizationRequest
	{
		public LookupAttributeMetadata Lookup
		{
			get
			{
				if (base.Parameters.Contains("Lookup"))
				{
					return (LookupAttributeMetadata)base.Parameters["Lookup"];
				}
				return null;
			}
			set
			{
				base.Parameters["Lookup"] = value;
			}
		}
		public OneToManyRelationshipMetadata OneToManyRelationship
		{
			get
			{
				if (base.Parameters.Contains("OneToManyRelationship"))
				{
					return (OneToManyRelationshipMetadata)base.Parameters["OneToManyRelationship"];
				}
				return null;
			}
			set
			{
				base.Parameters["OneToManyRelationship"] = value;
			}
		}
		public string SolutionUniqueName
		{
			get
			{
				if (base.Parameters.Contains("SolutionUniqueName"))
				{
					return (string)base.Parameters["SolutionUniqueName"];
				}
				return null;
			}
			set
			{
				base.Parameters["SolutionUniqueName"] = value;
			}
		}
		public CreateOneToManyRequest()
		{
			base.RequestName = "CreateOneToMany";
			this.Lookup = null;
			this.OneToManyRelationship = null;
		}
	}
}
